﻿namespace Rmq.Center
{
    public class OrderUnapptingMsg
    {
        /// <summary>
        /// 订单类型
        /// </summary>
        public OrderType OrderType { get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }

        /// <summary>
        /// 取消原因
        /// 用户取消 = 1,
        /// 系统取消 = 2,
        /// 医院停诊取消 = 3
        /// </summary>
        public int Reason { get; set; } = 2;
    }

    public class OrderUnapptingProducer : BaseProducer<OrderUnapptingMsg>
    {
        public OrderUnapptingProducer()
            : base(Const.RoutingKeys.OrderUnappting)
        { }
    }

    public class OrderUnapptingConsumer : BaseConsumer<OrderUnapptingMsg>
    {
        public OrderUnapptingConsumer()
            : base(Const.QueueNames.OrderUnappting, Const.RoutingKeys.OrderUnappting)
        { }
    }
}